home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / hardware / ioblixusr37_11 / install < prev    next >
Text File  |  1999-11-29  |  13KB  |  377 lines

  1. ;
  2. ; $VER: IOBlix installation 1.5 (16.7.99)
  3. ;
  4. ; Copyright (c) 1998 Thore Böckelmann and RBM Computertechnik
  5. ;
  6.  
  7. ;****************************************************************************
  8. ;
  9. ; English texts
  10. ;
  11. (if (not (= @language "deutsch"))
  12.     (
  13.         (set #bad-kick      "You must have AmigaOS 2.0 (V37) or newer to be able to use the IOBlix I/O board.")
  14.         (set #bad-cpu       "You must have at least an MC68020 to use the IOBlix software.")
  15.         (set #noioblix      (cat "You have no IOBlix board installed! "
  16.                                  "Please install the board first, before you install the software!"))
  17.         (set #selectboard   (cat "You have an IOBlixZ2 board and an IOBlix1200 module installed!\n"
  18.                                  "For which hardware do you want to install the software?"))
  19.         (set #installz2     "\n\nI will now install the software for the IOBlixZ2 board.")
  20.         (set #install1200   "\n\nI will now install the software for a IOBlix1200 module.")
  21.         (set #selectdevs    "\nWhere to install the device drivers?\n")
  22.         (set #selectl       "\nWhere to install the IOBlix-Handler?\n")
  23.         (set #selecttool    "\nWhere to install the additional tools (a new drawer will be created automatically)?\n")
  24.         (set #copyserdev    "\nCopying serial device driver...\n")
  25.         (set #copypardev    "\nCopying parallel device driver...\n")
  26.         (set #copyhandler   "\nCopying IOBlix-Handler...\n")
  27.         (set #copydosdriver "\nCopying DOSDrivers...\n")
  28.         (set #copytools     (cat "\nCopying Tools...\n"
  29.                                  "For information about the AutoMounter read the help page.\n"))
  30.         (set #tools-help    (cat "The AutoMounter makes mount files for ZIP media nearly obsolete, as long as you use ZIP media with an "
  31.                                  "Amiga compliant RDB. The RDB is written by programms like HDToolbox or any other program to prepare a "
  32.                                  "harddisk. The AutoMounter checks for every ZIP drive connected to a parallel port in case of a media change "
  33.                                  "if the inserted media is already mounted. If not, the AutoMounter tries to mount it, similar if you entered "
  34.                                  "\"mount <device>\" in a shell.\n"
  35.                                  "If you use a new FileSystem with the media the AutoMounter also will try to load that FileSystem from the RDB.\n"
  36.                                  "If all that could be done successfully the media will be ready ca. 5 seconds after insertion.\n"
  37.                                  "\n"
  38.                                  "The AutoMounter will NOT work for PC-formatted media, because these have no RDB! If you wish to work with "
  39.                                  "PC-formatted media you will have to use mount files, just as before!"))
  40.         (set #createtest    "\nCreating \"Test_Board\" script...\n")
  41.         (set #ssmodify      "\nAdding some command to S:User-Startup...\n")
  42.         (set #toolsource    "C/english")
  43.         (set #nsdinfo       (cat "\n"
  44.                                  "\n"
  45.                                  "If don't want to use IOBlix' own drivers SERxx: and PARxx: "
  46.                                  "but the original drivers instead, then you also have to install the NSDPatch software!\n"
  47.                                  "\n"
  48.                                  "NSDPatch can be found in the drawer \"Goodies\""))
  49.     )
  50. )
  51.  
  52. ;****************************************************************************
  53. ;
  54. ; Deutsche Texte
  55. ;
  56. (if (= @language "deutsch")
  57.     (
  58.         (set #bad-kick      "Sie müssen AmigaOS 2.0 (V37) oder höher installieren, um die IOBlix-Karte zu benutzen.")
  59.         (set #bad-cpu       "Sie brauchen mindestens einen MC68020, um die IOBlix-Software zu benutzen.")
  60.         (set #noioblix      (cat "Sie haben keine IOBlix-Karte in Ihrem Rechner installiert! "
  61.                                  "Bitte bauen Sie erst die Karte ein, bevor Sie die Software installieren!"))
  62.         (set #selectboard   (cat "Sie haben ein IOBlixZ2-Karte und ein IOBlix1200-Modul installiert!\n"
  63.                                  "Für welche Hardware wollen Sie die Software installieren?"))
  64.         (set #installz2     "\n\nEs wird jetzt die Software für die IOBlixZ2-Karte installiert.")
  65.         (set #install1200   "\n\nEs wird jetzt die Software für ein IOBlix1200-Modul installiert.")
  66.         (set #selectdevs    "\nWohin sollen die Gerätetreiber kopiert werden?\n")
  67.         (set #selectl       "\nWohin soll der IOBlix-Handler kopiert werden?\n")
  68.         (set #selecttool    "\nWohin sollen die Zusatzprogramme kopiert werden (eine neue Schublade wird automatisch angelegt)?\n")
  69.         (set #copyserdev    "\nKopiere seriellen Gerätetreiber...\n")
  70.         (set #copypardev    "\nKopiere parallelen Gerätetreiber...\n")
  71.         (set #copyhandler   "\nKopiere IOBlix-Handler...\n")
  72.         (set #copydosdriver "\nKopiere DOSDrivers...\n")
  73.         (set #copytools     (cat "\nKopiere Zusatzprogramme...\n"
  74.                                  "Für Informationen über den AutoMounter lesen Sie bitte die Hilfeseite.\n"))
  75.         (set #tools-help    (cat "Mit dem AutoMounter werden Mount-Dateien so gut wie unnötig, solange Sie mit ZIP-Medien arbeiten, "
  76.                                  "die einen Amiga-kompatiblen RDB besitzen. Der RDB wird von Programmen wie der HDToolbox oder ähnlichen "
  77.                                  "Programmen zum Partitionieren von Festplatten geschrieben. Der AutoMounter überprüft für jedes in ein "
  78.                                  "am Parallel-Port angeschlossenes ZIP-Drive bei einem Medienwechsel, ob das Medium bereits angemeldet ist, "
  79.                                  "und wenn nicht, so wird versucht es anzumelden, genauso als wenn Sie in einer Shell \"mount <device>\" "
  80.                                  "eingegeben hätten.\n"
  81.                                  "Wird ein FileSystem benutzt, daß bisher nicht im System verwendet wird, so wird ebenfalls versucht das "
  82.                                  "FileSystem aus dem RDB des Mediums zu laden.\n"
  83.                                  "Ist das alles erfolgreich abgelaufen, so steht Ihnen nach ca. 5 Sekunden das Medium zur Arbeit bereit.\n"
  84.                                  "\n"
  85.                                  "Dieses Verfahren funktioniert NICHT bei PC-formatierten Medien, da diese keinen RDB besitzen! Um mit "
  86.                                  "PC-formatierten Medien zu arbeiten müssen Sie also auch weiterhin eine Mount-Datei benutzen!"))
  87.         (set #createtest    "\nErstelle \"Test_Board\" Skript...\n")
  88.         (set #ssmodify      "\nFüge Befehle in S:User-Startup ein...\n")
  89.         (set #toolsource    "C/deutsch")
  90.         (set #nsdinfo       (cat "\n"
  91.                                  "\n"
  92.                                  "Wenn Sie statt der IOBlix-eigenen Treibern SERxx: und PARxx: "
  93.                                  "lieber weiterhin die originalen Treiber benutzen wollen, dann müssen Sie noch die NSDPatch-Software installieren!\n"
  94.                                  "\n"
  95.                                  "NSDPatch finden Sie in der Schublade \"Goodies\""))
  96.     )
  97. )
  98.  
  99. ;****************************************************************************
  100. ;
  101. ; Setup
  102. ;
  103.  
  104. (complete 0)
  105.  
  106. (if (< (/ (getversion) 65536) 37)
  107.     (abort #bad-kick)
  108. )
  109.  
  110. (if (patmatch "68000|68010" (database "cpu"))
  111.     (abort #bad-cpu)
  112. )
  113.  
  114. (run "execute install-assign")
  115.  
  116. ;****************************************************************************
  117. ;
  118. ; Welcome
  119. ;
  120.  
  121. (welcome)
  122.  
  123. (complete 10)
  124.  
  125. ;****************************************************************************
  126. ;
  127. ; Check for IOBlix board
  128. ;
  129.  
  130. (run "C/english/SetupIOBlix reinit a1200 par ser" (safe))
  131. (set #ioblixz2
  132.     (+
  133.         (run "C/Look4IOBlix hw=ser" (safe))
  134.         (run "C/Look4IOBlix hw=par" (safe))
  135.     )
  136. )
  137. (set #ioblix1200
  138.     (+
  139.         (run "C/Look4IOBlix a1200 hw=ser" (safe))
  140.         (run "C/Look4IOBlix a1200 hw=par" (safe))
  141.     )
  142. )
  143.  
  144. (if (> 2 @user-level)
  145.     (
  146.         (if (and (= 0 #ioblixz2) (= 0 #ioblix1200))
  147.             (abort #noioblix)
  148.         )
  149.     )
  150.     (
  151.         (set #ioblixz2 5)
  152.         (set #ioblix1200 5)
  153.     )
  154. )
  155.  
  156. (if (and (< 0 #ioblixz2) (< 0 #ioblix1200))
  157.     (
  158.         (set #ioblixboard
  159.             (askchoice
  160.                 (prompt #selectboard)
  161.                 (help @askchoice-help)
  162.                 (choices "IOBlixZ2" "IOBlix1200")
  163.                 (default 0)
  164.             )
  165.         )
  166.     )
  167.     (
  168.         (if (< 0 #ioblixz2)
  169.             (
  170.                 (set #ioblixboard 0)
  171.             )
  172.             (
  173.                 (set #ioblixboard 1)
  174.             )
  175.         )
  176.     )
  177. )
  178.  
  179. (if (= 0 #ioblixboard)
  180.     (
  181.         (message #installz2)
  182.     )
  183.     (
  184.         (message #install1200)
  185.     )
  186. )
  187.  
  188. (complete 20)
  189.  
  190. ;****************************************************************************
  191. ;
  192. ; Setup directory
  193. ;
  194.  
  195. (set #destdevs
  196.     (askdir
  197.         (prompt #selectdevs)
  198.         (help @askdir-help)
  199.         (default "DEVS:")
  200.     )
  201. )
  202.  
  203. (set #destl
  204.     (askdir
  205.         (prompt #selectl)
  206.         (help @askdir-help)
  207.         (default "L:")
  208.     )
  209. )
  210.  
  211. (set #desttool
  212.     (askdir
  213.         (prompt #selecttool)
  214.         (help @askdir-help)
  215.         (default "SYS:IOBlix")
  216.         (newpath)
  217.     )
  218. )
  219.  
  220. (set @default-dest #desttool)
  221.  
  222. (complete 20)
  223.  
  224. (makedir #desttool
  225.     (prompt "")
  226.     (help @makedir-help)
  227.     (infos)
  228. )
  229.  
  230. (complete 30)
  231.  
  232. ;****************************************************************************
  233. ;
  234. ; Install devices
  235. ;
  236.  
  237. (if (= 0 #ioblixboard)
  238.     (
  239.         (set #file "Devs/IOBlixZ2/ioblixser.device")
  240.     )
  241.     (
  242.         (set #file "Devs/IOBlix1200/ioblix12ser.device")
  243.     )
  244. )
  245. (copylib
  246.     (help @copylib-help)
  247.     (prompt #copyserdev)
  248.     (source #file)
  249.     (dest #destdevs)
  250.     (confirm)
  251. )
  252.  
  253. (if (= 0 #ioblixboard)
  254.     (
  255.         (set #file "Devs/IOBlixZ2/ioblixpar.device")
  256.     )
  257.     (
  258.         (set #file "Devs/IOBlix1200/ioblix12par.device")
  259.     )
  260. )
  261. (copylib
  262.     (help @copylib-help)
  263.     (prompt #copypardev)
  264.     (source #file)
  265.     (dest #destdevs)
  266.     (confirm)
  267. )
  268.  
  269. (copylib
  270.     (help @copylib-help)
  271.     (prompt #copyhandler)
  272.     (source "l/IOBlix-Handler")
  273.     (dest #destl)
  274.     (confirm)
  275. )
  276.  
  277. (if (= 0 #ioblixboard)
  278.     (
  279.         (copyfiles
  280.             (help @copyfiles-help)
  281.             (prompt #copydosdriver)
  282.             (source "Devs/IOBlixZ2/DOSDrivers")
  283.             (choices "PAR00" "PAR01" "SER00" "SER01" "SER02" "SER03")
  284.             (dest "SYS:Storage/DOSDrivers")
  285.             (infos)
  286.             (confirm)
  287.         )
  288.     )
  289.     (
  290.         (copyfiles
  291.             (help @copyfiles-help)
  292.             (prompt #copydosdriver)
  293.             (source "Devs/IOBlix1200/DOSDrivers")
  294.             (choices "PAR00" "PAR01" "SER00" "SER01" "SER02" "SER03")
  295.             (dest "SYS:Storage/DOSDrivers")
  296.             (infos)
  297.             (confirm)
  298.         )
  299.     )
  300. )
  301.  
  302. (complete 40)
  303.  
  304. ;****************************************************************************
  305. ;
  306. ; Install tools
  307. ;
  308.  
  309. (copyfiles
  310.     (help #tools-help)
  311.     (prompt #copytools)
  312.     (source #toolsource)
  313.     (choices "SetupIOBlix" "QueryIOBlix" "ResetQuaddddroPort" "AutoMount.demon")
  314.     (dest #desttool)
  315.     (confirm)
  316. )
  317.  
  318. (if (<> 0 #ioblixboard)
  319.     (
  320.         (if (<> 0 (run "search S:User-Startup ResetQuaddddroPort >nil:" (safe)))
  321.             (
  322.                 (textfile
  323.                     (dest "S:User-Startup.old")
  324.                     (prompt "")
  325.                     (help "")
  326.                     (include "S:User-Startup")
  327.                 )
  328.                 (textfile
  329.                     (dest "S:User-Startup")
  330.                     (prompt "")
  331.                     (help "")
  332.                     (append (cat (tackon #desttool "ResetQuaddddroPort") "\n"))
  333.                     (include "S:User-Startup.old")
  334.                 )
  335.             )
  336.         )
  337.     )
  338. )
  339.  
  340. (startup "IOBlix I/O Board"
  341.     (help @startup-help)
  342.     (prompt #ssmodify)
  343.     (command (cat (tackon #desttool "SetupIOBlix") " automounter >NIL:"))
  344. )
  345.  
  346. (complete 60)
  347.  
  348. (copyfiles
  349.     (help @copyfiles-help)
  350.     (prompt #createtest)
  351.     (dest #desttool)
  352.     (source "Test_Board")
  353.     (infos)
  354. )
  355.  
  356. (textfile
  357.     (dest (tackon #desttool "Test_Board"))
  358.     (prompt #createtest)
  359.     (help "")
  360.     (append (tackon #desttool "QueryIOBlix >t:queryioblix{$$}\n"))
  361.     (append "more t:queryioblix{$$}\n")
  362.     (append "delete t:queryioblix{$$} >nil:\n")
  363. )
  364.  
  365. ;complete 80)
  366.  
  367. (message #nsdinfo)
  368.  
  369. ;****************************************************************************
  370. ;
  371. ; Exit
  372. ;
  373.  
  374. (complete 100)
  375. (exit)
  376.  
  377.